// getListData
export const getListData = {
  success: true,
  code: 200,
  data: {
    list: [
      {
        _id: '647f9040c268d34a3dd82886',
        ranking: 1,
        title: 'Element-Plus',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '基于 Vue 3.0 的桌面端组件库'
      },
      {
        _id: '647f9040c268d34a3dd82888',
        ranking: 2,
        title: 'ESLint + Git Hooks',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '编码规范'
      },
      {
        _id: '647f9040c268d34a3dd82887',
        ranking: 3,
        title: 'vue-element-admin',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '后台前端解决方案'
      },
      {
        _id: '647f9040c268d34a3dd8288a',
        ranking: 4,
        title: '权限验证',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '页面权限、功能权限、动态权限、权限配置'
      },
      {
        _id: '647f9040c268d34a3dd82889',
        ranking: 5,
        title: '架构设计',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '架构设计'
      },
      {
        _id: '647f9040c268d34a3dd82885',
        ranking: 6,
        title: 'Vue3 + 全家桶',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '项目基于最新的vue3全家桶进行开发'
      },
      {
        _id: '647f9040c268d34a3dd8288b',
        ranking: 7,
        title: '功能引导',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '对用户的功能引导'
      },
      {
        _id: '647f9040c268d34a3dd8288c',
        ranking: 8,
        title: '侧边栏',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '根据路由动态生成的 Menu 菜单'
      },
      {
        _id: '647f9040c268d34a3dd8288d',
        ranking: 9,
        title: '动态面包屑',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '动态生成的面包屑数据'
      },
      {
        _id: '647f9040c268d34a3dd8288e',
        ranking: 10,
        title: 'Tags View',
        author: 'Sunday',
        publicDate: '1629099597000',
        desc: '便签快捷导航功能'
      }
    ],
    total: 12,
    page: '1',
    size: '10'
  },
  message: 'success'
}

// articleSort
export const articleSort = {
  success: true,
  code: 200,
  data: null,
  message: '排名重设成功'
}

// permissionList
export const permissionList = {
  success: true,
  code: 200,
  data: [
    {
      id: '1',
      permissionName: '员工管理',
      permissionMark: 'userManage',
      permissionDesc: '员工管理菜单',
      children: [
        {
          id: '1-1',
          permissionName: '分配角色',
          permissionMark: 'distributeRole',
          permissionDesc: '为员工分配角色'
        },
        {
          id: '1-2',
          permissionName: '导入员工',
          permissionMark: 'importUser',
          permissionDesc: '通过 excel 导入员工'
        },
        {
          id: '1-3',
          permissionName: '删除员工',
          permissionMark: 'removeUser',
          permissionDesc: '删除员工'
        }
      ]
    },
    {
      id: '2',
      permissionName: '角色列表',
      permissionMark: 'roleList',
      permissionDesc: '角色列表菜单',
      children: [
        {
          id: '2-1',
          permissionName: '分配权限',
          permissionMark: 'distributePermission',
          permissionDesc: '为角色分配权限'
        }
      ]
    },
    {
      id: '3',
      permissionName: '权限列表',
      permissionMark: 'permissionList',
      permissionDesc: '权限列表菜单',
      children: []
    },
    {
      id: '4',
      permissionName: '文章排名',
      permissionMark: 'articleRanking',
      permissionDesc: '文章排名菜单',
      children: []
    },
    {
      id: '5',
      permissionName: '创建文章',
      permissionMark: 'articleCreate',
      permissionDesc: '创建文章页面',
      children: []
    }
  ],
  message: '获取资料成功'
}

// roleList
export const roleList = {
  success: true,
  code: 200,
  data: [
    {
      id: '1',
      title: '超级管理员',
      describe: '唯一账号，可以操作系统所有功能'
    },
    {
      id: '2',
      title: '管理员',
      describe: '由超管指定，可以为多个，协助超管管理系统'
    },
    {
      id: '3',
      title: '人事经理',
      describe: '主管人事相关业务'
    },
    {
      id: '4',
      title: '销售经理',
      describe: '主管销售相关业务'
    },
    {
      id: '5',
      title: '保安队长',
      describe: '主管安保相关业务'
    },
    {
      id: '6',
      title: '员工',
      describe: '普通员工'
    }
  ],
  message: '获取资料成功'
}

// 角色权限 需要传ID 1-6 rolePermission
export const rolePermission1 = {
  success: true,
  code: 200,
  data: ['1', '1-1', '1-2', '1-3', '2', '2-1', '3', '4', '5'],
  message: '获取资料成功'
}
export const rolePermission6 = {
  success: true,
  code: 200,
  data: ['1', '1-1'],
  message: '获取资料成功'
}

// 分配权限 参数 distributePermission
// permissions: ["1-1", "1-2", "2-1", "3"]
// roleId :  "5"
export const distributePermission = {
  success: true,
  code: 200,
  data: null,
  message: '更新成功'
}
